@extends('admin.layout.layout')

@section('content')

    <div class="layui-form"  style="padding: 20px 0 0 0;">

        {{csrf_field()}}

{{--        <input value="{{$pid}}" name="pid" type="hidden">--}}
{{--        <input value="{{$level}}" name="level" type="hidden">--}}

        <div class="layui-form-item">
            <label class="layui-form-label">权限名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name"  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">路由</label>
            <div class="layui-input-inline">
                <input type="text" name="url"  placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-inline">
                <input value="{{$maxSort+1}}" type="text" name="sort"  placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-submit" id="LAY-submit" value="确认">
        </div>
    </div>


@endsection

@section('js')
    <script>

        lay.use(['index','form']);

    </script>

@endsection






